package com.koo.modules.sale.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.koo.common.base.entity.CommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 销售管理- 划价模板明细
 *
 * @author charlin
 * @email 136137465@qq.com
 * @date 2023-03-16 16:57:09
 */
@Data
@ApiModel("销售管理- 划价模板明细")
@TableName("sale_price_list_detail")
public class SalePriceListDetailEntity extends CommonEntity {
    private static final long serialVersionUID = 1L;

    @ExcelIgnore
    @TableId
    private Long detailId;

    @ColumnWidth(11)
    @ExcelProperty("划价单ID")
    @ApiModelProperty(value = "划价单ID")
    private Long priceListId;

    @ColumnWidth(11)
    @ExcelProperty("产品id")
    @ApiModelProperty(value = "产品id")
    private Long productId;

    @ColumnWidth(11)
    @ExcelProperty("货号")
    @ApiModelProperty(value = "货号")
    private String productCode;

    @ColumnWidth(11)
    @ExcelProperty("商品名")
    @ApiModelProperty(value = "商品名")
    private String productName;

    @ColumnWidth(11)
    @ExcelProperty("产地")
    @ApiModelProperty(value = "产地")
    private String producingArea;

    @ColumnWidth(11)
    @ExcelProperty("规格")
    @ApiModelProperty(value = "规格")
    private String standard;

    @ColumnWidth(11)
    @ExcelProperty("单位")
    @ApiModelProperty(value = "单位")
    private String unit;

    @ColumnWidth(11)
    @ExcelProperty("批准文号")
    @ApiModelProperty(value = "批准文号")
    private String approvalNo;

    @ColumnWidth(11)
    @ExcelProperty("生产单位")
    @ApiModelProperty(value = "生产单位")
    private String produceFactory;

    @ColumnWidth(11)
    @ExcelProperty("剂型")
    @ApiModelProperty(value = "剂型")
    private String dosageForm;

    @ColumnWidth(11)
    @ExcelProperty("条码")
    @ApiModelProperty(value = "条码")
    private String barCode;

    @ColumnWidth(11)
    @ExcelProperty("指导价")
    @ApiModelProperty(value = "指导价")
    private BigDecimal retailPrice;

    @ColumnWidth(11)
    @ExcelProperty("售价")
    @ApiModelProperty(value = "售价")
    private BigDecimal salePrice;

    @ColumnWidth(11)
    @ExcelProperty("会员价")
    @ApiModelProperty(value = "会员价")
    private BigDecimal memberPrice;

    @ColumnWidth(11)
    @ExcelProperty("数量")
    @ApiModelProperty(value = "数量")
    private BigDecimal detailNum;


}
